/***********************************
* Name: InterComentario.java
* Date: Oct 4, 2010
* @author martin
* Description:
***********************************/

package interCodeGen;


public class InterComentario implements Cod3Dir{

    String comentario = "";   //id1
                            //id2 -> ""
                            //id3 -> ""
    boolean tab = false;

    /*****************************************
     * InterEtiqueta
     * constructor
     *****************************************/
    public InterComentario(String comentario){
        this.comentario = comentario;
    }

    /*****************************************
     * InterEtiqueta
     * constructor
     *****************************************/
    public InterComentario(String comentario, boolean tab, char to_complete, int tam){

        this.comentario = to_complete+""+to_complete+""+to_complete+comentario;

        while(this.comentario.length() <= tam){
            this.comentario+=""+to_complete;
        }

        this.tab = tab;
    }

    /*****************************************
     * getId1
     * @return id1 with his representation
     *****************************************/
    public String getId1() {
        return this.comentario;
    }

    /*****************************************
     * getId2
     * @return id2 with his representation
     *****************************************/
    public String getId2() {
        return "";
    }

    /*****************************************
     * getId3
     * @return id3 with his representation
     *****************************************/
    public String getId3() {
        return "";
    }

    /*****************************************
     * getCodeString
     * @return the complete code of the Cod3Dir
     *****************************************/
    public String getCodeString() {
        return ((tab)?"\t":"")+"//"+this.comentario+"";
    }

}
